// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Copyright (c) 2012 The cwkshell Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef   CUC_CWKSHELL_BROWSER_SHELL_RENDER_PROCESS_OBSERVER_H_
#define   CUC_CWKSHELL_BROWSER_SHELL_RENDER_PROCESS_OBSERVER_H_

#include "base/basictypes.h"
#include "base/compiler_specific.h"

#include "base/memory/scoped_ptr.h"
#include "content/public/renderer/render_process_observer.h"
#include "cuc/src/cwkshell/browser/jsextension/cuc_object.h"


namespace cuc {
	namespace shell {
		class ShellRenderProcessObserver : public content::RenderProcessObserver {
		public:
			ShellRenderProcessObserver();
			virtual ~ShellRenderProcessObserver();
			  virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
			// RenderProcessObserver implementation.
			virtual void WebKitInitialized() OVERRIDE;
			
			static ShellRenderProcessObserver* GetInstance();
	

		private:


			void OnQuitApplication();
			void OnWindowMinimize();
			void OnWindowMaxsize();


			DISALLOW_COPY_AND_ASSIGN(ShellRenderProcessObserver);
		};
	}  // namespace shell
}  // namespace cuc

#endif  //   CUC_CWKSHELL_BROWSER_SHELL_RENDER_PROCESS_OBSERVER_H_
